package com.doraro.platform.module.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.doraro.platform.module.user.model.dto.RoleDetail;
import com.doraro.platform.module.user.model.entity.SysRole;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author doraro
 * @since 2019-04-21
 */
public interface ISysRoleService extends IService<SysRole> {


    List<SysRole> getRolesByUserId(String userId);

    Set<String> getPemsByRoleIds(List<Integer> rIds);

    List<RoleDetail> listWithMenus();

    void changeRolePermByMenuIds(Integer roleId, List<Integer> menuIds);

    List<SysRole> getPublicRoles();

}
